package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomerDao {
    List<Customer> getCustomerList(@Param("page") Integer page, @Param("rows") Integer rows, @Param("customerName") String customerName);

    Long count();

    void updateCustomer(@Param("customerId") Integer customerId, @Param("customerName") String customerName, @Param("contacts") String contacts, @Param("phoneNumber") String phoneNumber, @Param("address") String address, @Param("remarks") String remarks);

    void insertCustomer(@Param("customerName") String customerName, @Param("contacts") String contacts, @Param("phoneNumber") String phoneNumber, @Param("address") String address, @Param("remarks") String remarks);

    void deleteById(List<String> list);
}
